var Radio = require("./radio.js");

var inforObj = {"radioName": "音乐频道"};
var radio = new Radio(inforObj);
radio.on("start", function(){
    console.log(radio.radioName + "started");
    console.log("lalalalala...");
})
radio.on("stop", () => {
    console.log(radio.radioName + "stopped");
    // radio.stop();
})

setTimeout(() => {
    radio.emit("start");
},1000);

setTimeout(() => {
    radio.emit("stop");
},5000);